import request from '@/utils/request'

// 查询物资报废列表
export function listWuzibaofei(query) {
  return request({
    url: '/jiuzai/wuzibaofei/list',
    method: 'get',
    params: query
  })
}

// 查询物资报废详细
export function getWuzibaofei(baoId) {
  return request({
    url: '/jiuzai/wuzibaofei/' + baoId,
    method: 'get'
  })
}

// 新增物资报废
export function addWuzibaofei(data) {
  return request({
    url: '/jiuzai/wuzibaofei',
    method: 'post',
    data: data
  })
}

// 修改物资报废
export function updateWuzibaofei(data) {
  return request({
    url: '/jiuzai/wuzibaofei',
    method: 'put',
    data: data
  })
}

// 删除物资报废
export function delWuzibaofei(baoId) {
  return request({
    url: '/jiuzai/wuzibaofei/' + baoId,
    method: 'delete'
  })
}
